<?php

namespace app\admin\controller;

use think\Controller;

class Home extends Controller
{
    //首页
    public function index(){
        return view();
    }

    //账号退出
    public function loginout(){
        session(null);
        if (!session('?admin')){
            $this->success('退出成功', 'admin/index/login');
        }else{
            $this->error('退出失败');
        }
    }


}
